length is a reserved word, change to len