add functionality for list