made code pretty