dont count length every time