added inplace redirect sample