fixed args notice and removed whitespace errors from patch