after adding all class routine