made code little more readable