fixing order of elements