adding ismarketopen function