fixing debug statement issue