Code

spray algorithm updated