returned matrix back