code beautifying

no mixed indentation
no trailing whitespaces