using a matrix instead of two vectors