function coding phi-array is on the way