Shaping the dunes