adding patch method to the repo