add new code for debug