remove scale from matrix