added compatibility with AMD