added pickup function