updating class