replaced doAddClass