added function prototype to test