testing and debugging code