added formatting for log