new routine to control heliostat