fixing buggy lines