length is a property, not a method; other fixes too