update the skip and take code