updates to globl func