added bug procesing