wrap in stock message in if statement