added function test