should be bool() not int() assuming you change to use that instead of an int