matrix extends