adding station index as function argument take 2