enhance/improve changing the status of patches