change Gen* functions to fill slices