added methods to globalfunctions