detects bool as parameter type