fixed typos and subclassing error