added check and update