updated task to format data