added support for deindexing when the value is 0 w/ test