removed commented out lines in logger()