success! got the program to work as it should. just need to comment and work on output style