day and num as parameter *not tested*