first atempt at correcting AMD compile error