strip nonsense function wrapping