removed dead codes.