Removal of unnecessary array pointer