add projectile code