added remw, passes tests