fixing to get last column instead of hardcoded index for minix