working with list of items and there length