minor changes to the output and mutate kernel