refine attendance model and translation