improve boolean param