moved state to another file