add object position control function