position changed for a function