more work on mathlab - Saikat & Steve