function update

added curve and loop