moved display results into seperate file