memory optimisation, refactoring, LNK2001