split array position into func