changed index methods signature
added methods similar to those in builder
updated tests to match signatures