removed useless double check