modified pull statement