Camera Movement

Ive written a program that involves first person camera movement. It moves forwards/backwards and strafes left and right just fine. But then when i rotate the camera and try to move in the direction it is heading in, it continues to move on the global axis.

Any ideas??

ahhhh its ok ive got it figured out. stupid mistakes.