changing formatListFinal function to handle execute results as an object instead of an array