fix mark_seen method