update updateData method