updates format of returned results