updates to gobal functions