variable and function definition fixed