reduce method size