functionality of month detection provided