why do we need two arguments - couldn't we just pass an element if pointType is connected with it?