fixing states_helper issue