modified display logic