initialize bool variables correctly