moved renderer into a loop to render smoke effect