resolving to v1 attempt from matlab code