converting spaces to tabs, and fixing copy bug