add negative index functionaity to {{#?:n}}