set-up length var