changed linking order