before fixing a bug you need to know what is causing it