make patch work and test it