follow up to b5fd69b
- remove duplicate code sorry my bad thank you @cydh