adding station index as function argument