changed from lists to sets