modified GPU optimization section