made code more legible