remove unnecessary code in display class