call global a better way