converted indents to spaces
fixed code style