lab5 modified