initialized positions and velocity arrays