adding formatting of hours array