remove useless lines
add verification before patching