updated code to reflect changes in the Cesium codebase