reformated code with sebstorm