updated to only update a single key