rewrite locolize