cleaning up and seperating graphing and variable collation