modify function `flip` not to use `...` as its arguments