added a put func so calculating in a hash isn't mandatory