updating entity class