updated kinect code