adding some list helper functions