changing frequency positioning code