add checkPosition