refactored method algoriths. method analyzer counts parameters too