changed some lists to sets