finished rtdk implementation