You obviously need to switch next and prev pointers, but make sure you do it in the right order.