removed unnecessary double check