update with a elementExist method