fixed syntax error in yap