add list.first and list.last