use a counter instead of hardcoded incremented values for table