receive and check