fixed the random pickup method