This might be a long shot, but I'm guessing you're taking Bajic?
If you do, email him your code and ask him. He responds relatively quickly, and is very pointed in what needs to be changed.