court upholds