Baby doesn't eat well?

To

I've been breastfeeding my 4 week old and he wasn't gaining weight so we supplement with formula. I recently discovered that I AM indeed making enough milk (he had a couple 4 oz bottles because we were out a couple different days and I pumped 6 oz both times), but he isn't eating enough off me and was fussy and wasn't gaining weight with ebf?

How do I help him eat better?