added getBeamPosition