fixing eval() in 2D