ll#builder refactor so as to get rid of intermediate array