fixes minus and transpose bugs