remove all .o in matrix