created a few helper functions, worked on a test case file