added cts rts functions