make selection a function