made the code clearer