to make the clithr for connect and clear resource