done for whole class