improved code readablility and reduced code complexity