change reference from 'next' to 'generate'