remove unused pattern