change define_end()