fixed a minor bug,forgot to add 'global' to variable...again this is a HACK for the coming demo,refactoring is in the works