change resources to library