adding log prints.