learn about when spray runs what code