correct return value to array part