change ab to relative