add segment method for RC
add RC method and remove margin method
forget the TODO