adding patch as a method