added strongly unoptimized :D function for parsing input data to filter dropdowns