patches made correctly