this causes a problem with coordinates calculation