fixed index to int