add edit-function to build_c