refactor define, use parethesis to define args (like js)