deleted unnecessary check