adding code to process the mock