source code for ali