reticleScript copied over