started confirm and boolean function