refactor of code to use tab instead of spaces