update patch and deleted unused source