saves current code