fixed loose indices