fixed syntax error (length is a property, not a function)