set a few variables correctly