cleanup for selects