Advice for designing gun sounds?

I am struggling to create realistic gun sounds, every time I try it’s too flat or too boomy. Does anyone have any tips?