raise if not enough data