solve the problem in forward.c
solve the problem in forward.c