fix boolean return type