function indexes/2 does not match previous clause indexes/3 fixed