giving code to david to test on his machine