changed to receive data instead