used collection and deleted unused code