change the type of position