set relative position if it is not already set