added a separate parameter for secondary twisting