length is working for multiple units