modify xspeed.c