fixing state up for record. urgh
clean up