fixed typo in length function name