out of range error in scenery class fixed