codes_used helper in visitors