reorder and make global in if statement