function with argument failed