months now accessible outside function