possible solution to bug # 1 -> better debug