replaced all key words with builtin functions; add more control flow functions