added max(x,y) macro to sfnorm