fixed the boolean / int error