fixing matrices