changed formatting in between functions