modified table for() portion