cosmetic: remove tab, white space, unused functions