moved class name to parameter