reagrrangement of code