used internal fromatBytes insteand file validator's fromBytes method