update feature matrix