$ 0 0 I don't think the routine does what you intended as it will always return the same as a2(0,my). I have attached a file with what I think is you are really looking for - at least from what I had understood from your first question a few days ago.