add move and check function