added rt2
Missing malloc. Thanks to Toni