comparison part from Tyler
typos modified