sets up gravity and elasticity