a simple mapping and movement detection