fixed x-indexing