remove wasted code.