added Carl's idea to log