added a pick() method