adapt for x86_64