changed if statement to u != null