added handling with different months