set necessary vars