changed int8 to int16 in sparses matrix format