fixed seen function