user-defined unary operators
fix for nested loops