style issues. still need to figure out how to rename output variables