finished data input to hash, made code betterer