add condition prevent error