add function to backend