shape batch generation - step forward