add dummy functions on up,down emit to avoid stack error
remove with statement, with is bad