replacing classes