change method of install check