changing over to hash tables as the internet says dont use objects for this