trying to lowet complexity per method