bugs fixed test cases should be written