updated paper version after sam's edits