merged with omairs code -  update marker