change position to globalPosition