add the format function in utils