corrected day constructor