a method developed to update the attendance