check next fn before calling