replaced hardcoded daynumbers with loop