mmi and cohn-kanade functions and function calls added