don't use so much global scope and add semi colons