remove a cout statement and similified the rendering executable