improve changes of line categories