implement moving mapping (close #10)