trim coding style to improve readability