correct dependancies order