beatifying the code