making test even better...extracting some method