update orientation