add keystone and sheared matrix