some drying up
refactoring dropdown functions