updateData working