trying to fix this nil error.