function for junction 2025