working on this.function() calls in function defs in structs