added LENGTH statement
fixed typos