corrected function call names in Main Call for beam offset