finish prototype for sending receiving ams