dont add space after reference operator
fix index error issue