method resolving next