minor edit to code