updated: debug test code