for yap class