fixing curl statement