adding loggingReceive