modified attendances model