updated for failing test cases