clear up some linear indexing confusion