Created function and good display