added support for boolean indexing