added a few more functions for the (incomplete) struct member replacement function