fixed discover value check