apply denis patch