broke up blocks of code