made constants global in canvas engine