adding "bad code" disclaimer :)