working on updateData