add function for list