removed display duplication in main