leave and check method