remove edx reference