removing unnecessary code from the Scene