fixed capital problem with rip()