made gravity frame independent