refactored code. Operators *, / and ** result in unnamed dimension.