added clearing path after changing gravity