added endOfMonth method to header