added custom function test