move resources from class to resources