Why does it work without using pi function???