With serial, my program works the way I want it; without serial, it doesn't

Just curious in which arduino board you are using (revision # ) ?