put function inside macro, woops