remove state from the top file