added pick functionality