testing and debugging code added