You've only posted half the code. Please post the entire program.