ch2-functions fixed again with compiled file