updated attendance checking