turn x of n