2 n 3 modified from main