changed boolean to primitive data type