removed useless condition