changed generator generate method parameter