update absences output with function