made the code a bit more readable