modified REAMDE