add queryEnter and enter method