update code for debugging