across matrix two times