adding older version of code for review