checkPosition