remove depric method and update rm