fix masterNpeople encoding
rearch generate function