reorder 2 statements to be safer