updating by coordinates