add assignemtn to index