made the code more readable