carb backfiring

hey everyone i keep havinthis problem. my cars been having trouble starting. while its turnjing over it will backfire through the carb every few times, and when it does get running it run good with it mid-high revved but as soon as it drops down to idle it stall-backfire out he carb. Is this timing or the carb tuning? thanks for your help