add function to features