reduce duplication, please code climate gods, cleaner