removes methods from code if methods visually removed from flow
output updated