length no more hard coded