updated kinect.c