beautifying the code