repair delete functions and new instructions