added firstday definition