started working on codeml functions