conditionnal to fix warning on simulator