set up variables and const