made the evaluateTop configurable for the size needed