attempting to fix multiplying ids bug