modify: generate method