moved helper function into aux namespace