How to require matrix response