implement backC for rest and walk