add assignments to index