add attributes for the function definition