update to actually run on input samples