update fitness basic function