Return Type Fix

I've corrected the generate function's return type.