improving readability of code