This code appear incomplete. A working example would probably be more help- its always a hassle figuring out what someone else has done wrong or ommitted.