reallocate spaces, fix indentations