fixing attendance calculation... againw