fix order of appearce of data