robustifying code