test code revised