turning machine may used to let code more easy reading