generator syntax update