defining on macro that defines two functions