refining classes