It's hard to say what's wrong without seeing the code