renamed test2 to reflect its actual functionality