change generator to generators