separated AddPlaceholders into itself and a separate AddRowDerivatives function