cleans up code,  removes scar tissue