rebuilt and created attendance model