change param type from int to bool