modify wander.c