reduce methods complexity.