added a second log function