working except printing on two lines -- need to remove the '\n' from the timestamp