added condition to correct quarter == 0