better handling of mixed read lengths