fixed day5 functions return