add na.omit statement to remove problematic rows