tab to spaces and correction of error