classmethod for receive