debugging and testing