rewrite thumb call