realized this would be cleaner.