trying to make code more understandable and readable