in class version
fixed typos