the removal of global functions