fix static addressing problem and turn it to relative