changed boolean object to primitive
check for double firing and fixed off by one error for month