adjust pointer ordering