made code more understandable