add function matrix to access.py