fix array size calculation