implemented calls for matrix