modified interference and added test cases