documented small diff with original implementation