removing useless check