cutoff log function now pads array correctly