took out unnecessary hash state