patching was not correct