define and name function