progress made on the generate method