deleting line mechanism works