fix depth error
remove some code