refactored months title line into one method