changed style & added comments