add function make_ace.