chaining callbacks changes the params passed to callbacks