Please remove elementLength, as it's not being used.