change type to library