minor code changes. messing up scripts for paper deadline. will consolidate later