used as index in array, any solution?