rotational transformation logical error fixed