reworked _checkPosition method