removed license check code