improve bool