fixed unary operators check, added length as a constant