for modifying beam trajectory