sorted out rt functionality