replace crappy code with crappy code