update code for test