added missing type in function definition