updated to clone into the appropriate place