added compatibility with amd and classic style