add function cons and stms