modify display line function