fixing logic to have correct punctuation