repaired "voir" function