store only indices + TODO