updated robot pick-place routine