testing outside function