altered functions to display neater