properly init boolean variable