set prefix gen method to public