refactored the hall effect node to be less messy