small mistake - made var a string not bool