adding returned data to log