some debugging steps added