working debugging the issue