moving from class to helper for viddler api