receive_data function instead of registered process