while error checking, removed list-len and string-len