added variable declaration
 + typed function definition
added variable declaration
 + typed function definition