useless check removed