worked on test cases