as you will see in image in post #8
functions and constants need to be defined at the top of the code module
as i can not see the top of the module, i assume that the other constants and functions are at the top, if not they need to be, and all privates need to be made to public