main function in .ama interpreted