damn you global variables