change allocatable to static array. Add new interface for 30% performanc...

...e improvement