test code modified