refactoring for projectile drag