solved the end/start month transition issue