week4 modified