names ordered, inds named more specifically, needs futher checking for bugs still