one dimension done. to change to multiple dimension