update and apply for GIMats