relaxed float comparision
corrected linking condition