allow functions in matrices