this is a copy of my 4to1Dog code