fixed code style
moved code to copy from