just added few debug statements