added processing methods and test cases