fix size windows. add matrix