making methods smaller