small code refactor to rxtype anchor