generates resources