implemented length comparison. close #62