added world density as parameter