removes duplicate code