adding reverse in place