changed table added rotation correction