added a small hack to gain a little speed.