modernized pickup code

removed this-> and updated the for loop to a for each