cleaned up ai