added random gravity