if you are using a function in another function, declare that function before you call it
alternatively, you can use forward declaration
if you are using a function in another function, declare that function before you call it
alternatively, you can use forward declaration