cleans up classes behind itself