changed code in yak.py