Auxiliary functions no longer as pure
bugfix