adding sinon code