added cvs as matrix input