fixing false and true problem