final update based on feedback--fixed overwrite issue