addded maximum(abs()) to dematricize