handle the class modifier