modified append to use reducers version of map