matrix on server end