we will need to see your whole code first... sure there's few things missing here..