how to declare a function