put style code into smaller pieces