threw error when data not specified and z/spread were supplied by user