fixed indentation
num_spray and spray_std are configurable