made small changes throughout