format data working