refactored assert and youtube type