fixed arrow op not finding a function inside a struct