my solution for duplications

it makes use of basis::sig