added bool ndarray's back in to speed things up