improve definitions of magnitude/sign