seriously, who wrote this bad code?