started adding code for RTA outputs