only use 1 row instead of full matrix