making the code pretty