get rid of list copying