utils function with nbc script in