created valid visa function