move working in one dimension