added patch function