removed unnecessary check