separate indexing into steps