moved commented out code to another file. added a function for testing