replaced size with length