symantics creating a function