change method of struct function calls