change amd dependecies order