lines 5,6,7,8 modified in SECOND