added affix functionality