check for displaying by passing value