switched to max() to make sure colEnd arg >= 0 (instead of if testing)