merkle code added