changed [] with array()

closes #95