conver sets to list for json encoding