add statements and some function declarations