add two functions for list operations