fine tuned with test cases till schemes ... now accounts to be done